package com.uls.questionnaire.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 问题信息对象 zxh_question
 * 
 * @author zxh
 * @date 2024-10-31
 */
public class ZxhQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问题id */
    @Excel(name = "问题id")
    private Long questionId;

    /** 问卷id */
    @Excel(name = "问卷id")
    private Long questionnaireId;

    /** 问题的文本内容 */
    @Excel(name = "问题的文本内容")
    private String questionText;

    /** 问题的类型（0:单选、1:多选、2:文本） */
    @Excel(name = "问题的类型", readConverterExp = "0=:单选、1:多选、2:文本")
    private Long questionType;

    /** 更新时间 */
    private Date updatedTime;

    /** 问题版本号 */
    private Long version;

    /** 选项信息信息 */
    private List<ZxhOptiones> zxhOptionesList;


//    public ZxhQuestion(Long questionnaireId) {
//        this.questionnaireId = questionnaireId;
//    }



    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setQuestionnaireId(Long questionnaireId) 
    {
        this.questionnaireId = questionnaireId;
    }

    public Long getQuestionnaireId() 
    {
        return questionnaireId;
    }
    public void setQuestionText(String questionText) 
    {
        this.questionText = questionText;
    }

    public String getQuestionText() 
    {
        return questionText;
    }
    public void setQuestionType(Long questionType) 
    {
        this.questionType = questionType;
    }

    public Long getQuestionType() 
    {
        return questionType;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    public List<ZxhOptiones> getZxhOptionesList()
    {
        return zxhOptionesList;
    }

    public void setZxhOptionesList(List<ZxhOptiones> zxhOptionesList)
    {
        this.zxhOptionesList = zxhOptionesList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionId", getQuestionId())
            .append("questionnaireId", getQuestionnaireId())
            .append("questionText", getQuestionText())
            .append("questionType", getQuestionType())
            .append("createTime", getCreateTime())
            .append("updatedTime", getUpdatedTime())
            .append("version", getVersion())
            .append("zxhOptionesList", getZxhOptionesList())
            .toString();
    }
}
